<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
<jsp:include page="common_head.jsp" flush="true"></jsp:include>
</head>
<body>
	<jsp:include page="nav.jsp" flush="true"></jsp:include>
	<section class="center home">
		<h1>This... is a Panic..Room for Neil.</h1>
		<article class="img_fit">
			<img alt="profileImage" src="<c:url value='/resources/images/profile.jpg'/>" width="30%" />
		</article>
		<article>
			<P>But....Who are you?</P>
			<form action="SubmitName.do" method="post" onsubmit="return welcome(this);">
				<fieldset>
					<legend>I don't know you.</legend>
					<input type="text" id="txtName" name="txtName" size="20" />
					<input type="submit" id="submitName" name="submitName" value="Tell me." />
				</fieldset>
			</form>
		</article>
	</section>
	<script type="text/javascript">
		welcome = function(form) {
			var name = form.txtName.value;
			return confirm("안녕하세요? " + name + " 님");
		}
	</script>
</body>
</html>

